package com.wingsfrog.travel.controller.dto.response;

import com.wingsfrog.travel.modules.entity.Task;
import com.wingsfrog.travel.modules.entity.TeamTask;

import java.util.List;

/**
 * Created by rankin on 16/3/30.
 */
public class TaskResDto {
    Integer id;
    String taskName;
    String taskDescription;
    Integer taskScore;
    Integer sequence;
    Boolean isTeamTask;
    Integer taskType;
    List<TaskHintResDto> hintList;

    public TaskResDto() {
    }
    public TaskResDto(Task t){
        this.id = t.getId();
        this.taskName = t.getTaskName();
        this.taskDescription = t.getTaskDescription();
        this.taskScore = t.getTaskScore();
        this.sequence = t.getSequence();
        this.taskType = t.getTaskType();
        this.isTeamTask = t.getIsTeamTask();
    }

    public TaskResDto(TeamTask t){
        this.id = t.getTaskId();
        this.taskName = t.getTaskName();
        this.taskDescription = t.getTaskDescription();
        this.taskScore = t.getTaskScore();
        this.sequence = t.getSequence();
        this.taskType = t.getTaskType();
    }


    public List<TaskHintResDto> getHintList() {
        return hintList;
    }

    public void setHintList(List<TaskHintResDto> hintList) {
        this.hintList = hintList;
    }

    public Integer getTaskScore() {
        return taskScore;
    }

    public void setTaskScore(Integer taskScore) {
        this.taskScore = taskScore;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getTaskDescription() {
        return taskDescription;
    }

    public void setTaskDescription(String taskDescription) {
        this.taskDescription = taskDescription;
    }

    public Integer getTaskType() {
        return taskType;
    }

    public void setTaskType(Integer taskType) {
        this.taskType = taskType;
    }

    public Integer getSequence() {
        return sequence;
    }

    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }

    public Boolean getIsTeamTask() {
        return isTeamTask;
    }

    public void setIsTeamTask(Boolean isTeamTask) {
        this.isTeamTask = isTeamTask;
    }


}
